package model;

import java.util.ArrayList;

public class FrameworkNode {
	private String nodeName;
	public String getNodeName() {
		return nodeName;
	}
	public void setNodeName(String nodeName) {
		this.nodeName = nodeName;
	}
	public String getNodeDes() {
		return nodeDes;
	}
	public void setNodeDes(String nodeDes) {
		this.nodeDes = nodeDes;
	}
	private String nodeDes;
	ArrayList<FrameworkNode> fns;
	public FrameworkNode(String[] treeString) {
		this.nodeName = treeString[0];
		this.nodeDes = treeString[1];
	}
	public void addChild(FrameworkNode dn) {
		if(fns==null)
			fns = new ArrayList<FrameworkNode>();
		fns.add(dn);
	}
	public ArrayList getChild() {
		return fns;
	}
}
